
<% for content in @contents %>
    
    <div id="post">
        <h1><%= h(content.title) %></h1>
        <div id="postheader">Written by: <%= h(content.author) %> on <%= h(content.create_date) %></div>
        <a href="http://localhost:3000/content/edit/<%= h(content.id) %>"><img src="images/page_edit.png"/></a>&nbsp;
        <p><%= content.text %></p>
        <p></p>
        
        <div id="postfooter">Last updated: <%= h(content.update_date) %></div>
    </div>
    
<% end %>

